package cn.test.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
@ApiModel(description = "涨幅榜信息")
public class StockRtDomain {
    @ApiModelProperty(value = "股票编码", required = true)
    private String code;

    @ApiModelProperty(value = "股票名称", required = true)
    private String name;

    @ApiModelProperty(value = "前收盘价", required = true)
    private BigDecimal preClosePrice;

    @ApiModelProperty(value = "当前价格", required = true)
    private BigDecimal tradePrice;

    @ApiModelProperty(value = "交易量", required = true)
    private Long tradeAmt;

    @ApiModelProperty(value = "交易金额", required = true)
    private Long tradeVol;

    @ApiModelProperty(value = "涨幅", required = true)
    private BigDecimal increase;

    @ApiModelProperty(value = "涨跌", required = true)
    private BigDecimal upDown;

    @ApiModelProperty(value = "振幅", required = true)
    private BigDecimal amplitude;

    @ApiModelProperty(value = "当前日期", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date curDate;
}
